//
//  DetailsModel.m
//  express
//
//  Created by dev on 14/12/7.
//  Copyright (c) 2014年 yunqi. All rights reserved.
//

#import "DetailsModel.h"

@implementation DetailsModel

- (instancetype)initWithData:(NSDictionary *)data
{
    self = [super init];
    if (self) {
        _data = data;
    }
    return self;
}

- (id)objectForKey:(NSString *)key
{
    if (![[_data allKeys] containsObject:key]) return nil;
    
    return _data[key];
}

- (id)objectForKeyedSubscript:(NSString *)key
{
    if (![[_data allKeys] containsObject:key]) return nil;
    
    return _data[key];
}

@end
